<#include "head.html"/>	
<SCRIPT type="text/javascript">
	$(document).ready(function(){

		var ztree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), setting, zNodes1);
		ztree.selectNode(ztree.getNodeByParam("id", "${type!''}", null));
		var myDate = new Date();
		<#if type??&&type=='cpu'>			
				createChar_area('#cpu_container' , 'CPU效率分布' ,'%', [{
	            	pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '总CPU利用率',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.cpupercent?string('###.##')}</#list></#if>
	           		]
	            }, {
	            pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '用户CPU使用率',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.cpuus?string('###.##')}</#list></#if>
	                ]
	            }, {
	            	pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000,  
	                name: '系统CPU使用率',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.cpusys?string('###.##')}</#list></#if>
	                ]
	            }] );
			createChar_area('#cpu_free_container' , 'CPU空闲率' ,'%',[{
					pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: 'CPU空闲率',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.cpuidle?string('###.##')}</#list></#if>
	                ]
	            }]);
	     </#if>
	    <#if type??&&type=='memory'>
	    	createChar_area('#mem_container' , '内存效率分布' ,'%',[{
	    		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '内存效率分布',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.mempercent?string('###.##')}</#list></#if>
                ]
            }]);
            
        createChar_area('#mem_value_container' , '内存分布' ,'G',[{
        		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '总内存',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.memtotal/1024/1024/1024}</#list></#if>
                ]
            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '已用内存',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.memused/1024/1024/1024}</#list></#if>
                ]
            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '空闲内存',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.memfree/1024/1024/1024}</#list></#if>
                ]
            }]);
		</#if>
		<#if type??&&type=='disk'>
	    	createChar_area('#disk_container' , '硬盘效率分布' ,'%',[{
	    		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '硬盘效率分布',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.diskusepercent?string('###.##')}</#list></#if>
                ]
            }]);
	        createChar_area('#disk_value_container' , '硬盘使用分布' ,'G',[{
	        		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '总量',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.disktotal/1024/1024}</#list></#if>
	                ]
	            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000,  
	                name: '已用',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.diskuse/1024/1024}</#list></#if>
	                ]
	            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000,  
	                name: '空闲',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.diskfree/1024/1024}</#list></#if>
	                ]
	            }]);
		</#if>
		<#if type??&&type=='net'>
	    	
		    	createChar_area('#net_container' , '网络效率分布' ,'%',[{
		    		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '网络效率分布',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.netuseprecent?string('###.##')}</#list></#if>
	                ]
	            }]);
	            
	        createChar_area('#net_write_container' , '网络流量写入' ,'Kb/s',[{
	        		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '网络流量写入',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.netwritespeed/1024}</#list></#if>
	                ]
	            }]);
	        createChar_area('#net_read_container' , '网络流量读取' ,'Kb/s',[{
	        		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000,  
	                name: '网络流量读取',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.netreadspeed/1024}</#list></#if>
	                ]
	            }]);
	            
	        createChar_area('#net_package_container' , '网络数据包传送速率' ,'package/s',[{
	        		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '接收速率',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.rxpackagespeed}</#list></#if>
	                ]
	            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
	                name: '发送速率',
	                data: [
	                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.txpackagespeed}</#list></#if>
	                ]
	            }]);
		</#if>
		<#if type??&&type=='jvm'>
	    	createChar_area('#jvm_container' , '虚拟机内存使用率' ,'%',[{
	    		pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '虚拟机内存使用率',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.jvmmemusepercent?string('###.##')}</#list></#if>
                ]
            }]);
       	createChar_area('#jvm_value_container' , '虚拟机内存分布' ,'G',[{
       			pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '已分配内存',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.jvmmemtotal/1024/1024/1024}</#list></#if>
                ]
            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            pointInterval: 5 * 1000, 
                name: '已使用内存',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.jvmmemuse/1024/1024/1024}</#list></#if>
                ]
            },{pointStart: Date.UTC(${systemBeanFirst.createdate?string('yyyy')}, ${systemBeanFirst.createdate?string('M')}, ${systemBeanFirst.createdate?string('d')},${systemBeanFirst.createdate?string('H')},${systemBeanFirst.createdate?string('m')},${systemBeanFirst.createdate?string('s')}),
	            	pointInterval: 5 * 1000, 
                name: '空闲内存',
                data: [
                <#if systemBeans??><#list systemBeans as systemBean><#if systemBean_index gt 0>,</#if>${systemBean.jvmmemfree/1024/1024/1024}</#list></#if>
                ]
            }]);
		</#if>
		
	});


</SCRIPT>

<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：</div>
	<ul class="breadCrumb">
		<li class="bc_ithems"><a href="/${orgi}/manage/task/taskpassing.html">系统管理</a></li>
		<li class="bc_ithems"><a href="/${orgi}/manage/serviceplan/systemstatus/all.html">系统服务规划</a></li>
	</ul>
</div>


		
<!--<div class="rs_layout_right" style="width:300px;"></div>-->
<div class="rs_layout_center">
	<div class="rs_layout">
		<div class="rs_layout_left" resizable="true" style="width:230px;">
			<div class="lftTreeWrap">
			<form id="searchForm" action="/${orgi}/manage/serviceplan/serverresource/${type!''}/${server.id!''}.html" method="post">
			<#include "serverleft.html"/>
			</form>
			</div>
		</div>
		<div class="rs_layout_center">
			<div class="tableScrollWrap" tabindex="5000" style="overflow: hidden; outline: none;">
		
				<#if type??&&type=='cpu'>
				<div class="grid_wrap">
					<div class="gw-right" style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="oicon-processor"></i> CPU效率分布</div>
							<div class="content">
								<div class="eChartDemo" id="cpu_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
					
				</div>
				<div class="grid_wrap">
					
					<div class="gw-right" style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="oicon-processor"></i>CPU空闲率</div>
							<div class="content">
								<div class="eChartDemo" id="cpu_free_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				</div>
				</#if>
				<#if type??&&type=='memory'>
				<div class="grid_wrap">
					<div class="gw-right" style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-70"></i>内存效率图</div>
							<div class="content">
								<div class="eChartDemo" id="mem_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
					
				</div>
				<div class="grid_wrap">
					
					<div class="gw-right" style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-70"></i> 内存使用分布</div>
							<div class="content">
								<div class="eChartDemo" id="mem_value_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				</div>
				</#if>
				<#if type??&&type=='disk'>
				<div class="grid_wrap">
					<div class="gw-right"  style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon  cbtn-icon-69"></i> 硬盘效率图</div>
							<div class="content">
								<div class="eChartDemo" id="disk_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				
				</div>
				<div class="grid_wrap">
					
					<div class="gw-right"  style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon  cbtn-icon-69"></i> 硬盘使用分布图</div>
							<div class="content">
								<div class="eChartDemo" id="disk_value_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				</div>
				</#if>
				<#if type??&&type=='net'>
				<div class="grid_wrap">
					<div class="gw-right">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-76"></i> 网络流量读取图</div>
							<div class="content">
								<div class="eChartDemo" id="net_read_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
					<div class="gw-right">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-73"></i> 网络流量写入图</div>
							<div class="content">
								<div class="eChartDemo" id="net_write_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				</div>
				<div class="grid_wrap">
					<div class="gw-right">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-74"></i>网络效率图</div>
							<div class="content">
								<div class="eChartDemo" id="net_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
		
					<div class="gw-right">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-75"></i> 网络数据包传输效率</div>
							<div class="content">
								<div class="eChartDemo" id="net_package_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				</div>
				</#if>
				<#if type??&&type=='jvm'>
				<div class="grid_wrap">
					<div class="gw-right" style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-72"></i> 虚拟机效率图</div>
							<div class="content">
								<div class="eChartDemo" id="jvm_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
					
				</div>
				<div class="grid_wrap">
					
					<div class="gw-right" style="width: 100%;">	
						<div class="well info_box">
							<div class="title"><i class="monitor_icon cbtn-icon-72"></i> 虚拟机使用分布图</div>
							<div class="content">
								<div class="eChartDemo" id="jvm_value_container" style="height:176px;" chartheight="100"></div>
							</div>
						</div>
						
					</div>
				</div>
				</#if>
			</div> 
		</div>
	</div>
	 
</div>
